cmake_minimum_required(VERSION 3.1)

project(helloworld)
find_package(GTest CONFIG REQUIRED)
find_package(absl CONFIG REQUIRED)
find_package(Ceres REQUIRED)
include_directories(${CERES_INCLUDE_DIRS})

# helloworld
add_executable(helloworld helloworld.cc)
target_link_libraries(helloworld absl::log_initialize ${CERES_LIBRARIES})

# curve_fitting
add_executable(curve_fitting curve_fitting.cc)
target_link_libraries(curve_fitting absl::log_initialize ${CERES_LIBRARIES})

# curve_fitting
add_executable(line_fitting line_fitting.cc)
target_link_libraries(line_fitting absl::log_initialize ${CERES_LIBRARIES})
